package com.spsoft.vatoutinv.model.vo.vmsiscinformation;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @description: 发票汇总查询当月的明细Vo
 * @author: liwm
 * @create: 2024-01-18 09:55
 **/
@Data
@ApiModel(value = "发票汇总查询当月的发票", description = "发票汇总查询当月的发票")
public class VmsIscInformationDetailVo {

    @ApiModelProperty(value = "序号", notes = "Excel导出使用")
    @ExcelProperty("序号")
    private int xh;

    /**
     * 发票状态;0：正常，2：作废，3：已红冲，7：部分红冲，8：全额红冲
     */
    @ApiModelProperty(value = "发票状态")
    @ExcelProperty("发票状态")
    private String fpzt;

    /**
     * 发票号码
     */
    @ApiModelProperty(value = "发票号码")
    @ExcelProperty("发票号码")
    private String fphm;

    /**
     * 发票票种;01：数电专 02：数电普
     */
    @ApiModelProperty(value = "发票类型")
    @ExcelProperty("发票类型")
    private String fppz;

    /**
     * 购买方名称
     */
    @ApiModelProperty(value = "购买方名称")
    @ExcelProperty("购买方名称")
    private String gmfmc;

    /**
     * 合计金额
     */
    @ApiModelProperty(value = "金额")
    @ExcelProperty("金额")
    @JsonSerialize(using = ToStringSerializer.class)
    @NumberFormat()
    private BigDecimal hjje;

    /**
     * 合计税额
     */
    @ApiModelProperty(value = "税额")
    @ExcelProperty("税额")
    @JsonSerialize(using = ToStringSerializer.class)
    @NumberFormat()
    private BigDecimal hjse;

    /**
     * 价税合计
     */
    @ApiModelProperty(value = "价税合计")
    @ExcelProperty("价税合计")
    @JsonSerialize(using = ToStringSerializer.class)
    @NumberFormat()
    private BigDecimal jshj;

}
